package my.sample.collection.sort;

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

public class SortPerson {

	public static void main(String[] args) {
		
		Set<Integer> numbers = new HashSet<Integer>();
		numbers.add(1);
		numbers.add(2);
		numbers.add(3);
		numbers.add(2);
		
		System.out.println(numbers);
		
//		System.exit(1);
		
		
		Set<Person> family = new TreeSet<Person>();
		
		family.add(new Person("venu", 60));
		family.add(new Person("raji", 50));
		family.add(new Person("venu", 60));
		
		System.out.println(family);
		
	}

}
